<?php
	include "../../inc/log/adsession.php";
	// include "../../inc/data/connAdmin.php";
?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<?php
	//1903010328 获取删除二级学院的信息
	include "../../inc/data/connAdmin.php";
	$depName = $_GET["dep"];
	//执行删除
	$sql = "delete from mamx_dep where depname = ?";
	$stmtD=$conn->prepare($sql);
	$stmtD->bind_param("s",$depName);
	$stmtD->execute();
	$stmtD->bind_result($depName);
	$stmtD->store_result();
	$stmtD->fetch();
	if ($stmtD = $conn->prepare($sql)) {
		?>
		<script type="text/javascript">
		alert("删除成功！");
		location = "depAdmin.php";
		</script>
		<?php

	}

	?>
</body>
</html>